<?php $__env->startSection('content'); ?>
<div class="row wrapper border-bottom white-bg page-heading">
  <div class="col-lg-10">
    <h2><?php echo trans('permission.title'); ?></h2>
    <ol class="breadcrumb">
        <li>
            <a href="<?php echo e(url('admin')); ?>"><?php echo trans('home.title'); ?></a>
        </li>
        <li>
            <a href="<?php echo e(route('permission.index')); ?>"><?php echo trans('permission.title'); ?></a>
        </li>
        <li class="active">
            <strong><?php echo trans('common.create').trans('permission.slug'); ?></strong>
        </li>
    </ol>
  </div>
  <div class="col-lg-2">
    <div class="title-action">
      <a class="btn btn-white" href="<?php echo e(route('permission.index')); ?>"><i class="fa fa-reply"></i>  <?php echo trans('common.cancel'); ?></a>
    </div>
  </div>
</div>
<div class="wrapper wrapper-content animated">
  <div class="row">
    <div class="col-lg-12">
      <div class="ibox float-e-margins">
        <div class="ibox-title">
          <h5><?php echo trans('common.create').trans('permission.slug'); ?></h5>
          <div class="ibox-tools">
              <a class="collapse-link">
                  <i class="fa fa-chevron-up"></i>
              </a>
              <a class="close-link">
                  <i class="fa fa-times"></i>
              </a>
          </div>
        </div>
        <div class="ibox-content">
          <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
          <form method="post" action="<?php echo e(route('permission.store')); ?>" class="form-horizontal">
            <?php echo e(csrf_field()); ?>

            <div class="form-group<?php echo e($errors->has('name') ? ' has-error' : ''); ?>">
              <label class="col-sm-2 control-label"><?php echo e(trans('permission.name')); ?></label>
              <div class="col-sm-10">
                <input type="text" class="form-control" name="name" value="<?php echo e(old('name')); ?>" placeholder="<?php echo e(trans('permission.name')); ?>"> 
                <?php if($errors->has('name')): ?>
                <span class="help-block m-b-none text-danger"><?php echo e($errors->first('name')); ?></span>
                <?php endif; ?>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group<?php echo e($errors->has('slug') ? ' has-error' : ''); ?>">
              <label class="col-sm-2 control-label"><?php echo e(trans('permission.slug')); ?></label>
              <div class="col-sm-10">
                <input type="text" class="form-control" name="slug" value="<?php echo e(old('slug')); ?>" placeholder="<?php echo e(trans('permission.slug')); ?>"> 
                <?php if($errors->has('slug')): ?>
                <span class="help-block m-b-none text-danger"><?php echo e($errors->first('slug')); ?></span>
                <?php endif; ?>
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <label class="col-sm-2 control-label"><?php echo e(trans('permission.description')); ?></label>
              <div class="col-sm-10">
                <input type="text" class="form-control" name="description" value="<?php echo e(old('description')); ?>" placeholder="<?php echo e(trans('permission.description')); ?>">
              </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group">
              <div class="col-sm-4 col-sm-offset-2">
                  <a class="btn btn-white" href="<?php echo e(route('permission.index')); ?>"><?php echo trans('common.cancel'); ?></a>
                  <?php if(haspermission('permissioncontroller.store')): ?>
                  <button class="btn btn-primary" type="submit"><?php echo trans('common.create'); ?></button>
                  <?php endif; ?>
              </div>
            </div>
          </form>
        </div>
    </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.'.getTheme(), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>